package com.kili.file.enums;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/** supported file upload types
 * @author Gordon
 * @version 2019/4/1
 */
public enum FileType {
    //todo have other type???
    HTML("html"),

    DOC("doc"),

    DOCX("docx"),

    PDF("pdf"),

    XLS("xls"),

    PS("ps"),

    RTF("rtf"),

    TXT("txt"),

    APK("apk"),

    CSS("css");


    private String type;

    FileType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public static final List<String> FILE_TYPE_LIST = new ArrayList<>();

    static {
        FileType[] var0 = values();
        Arrays.asList(var0).forEach((var) -> FILE_TYPE_LIST.add(var.type));

    }
}
